package com.zy.cloud.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @ClassName: CommonResult
 * @Description: #TODO
 * @Author: yanzy
 * @Date: 2021/3/1 19:57
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> {

    private Integer resultCode;

    private String resultMsg;

    private T body;

    public CommonResult(Integer resultCode, String resultMsg) {
        this(resultCode, resultMsg, null);
    }
}
